AM_CPPFLAGS += -I$(top_srcdir)/src/util/cgm \
               -I$(top_srcdir)/src/geom/parallel/cgm \
               -I$(top_builddir)/src/util/cgm \
               -I$(top_builddir)/src/geom/cgm \
               -I$(top_srcdir)/src/geom/cgm \
               $(MPI_INCLUDE) \
	       $(HAVE_OCC_DEF)

if USE_MPI
  AM_CPPFLAGS += -DUSE_MPI
endif

# The name of the library to build
if build_parallel
  noinst_LTLIBRARIES = libcgm_parallel.la
else
  noinst_LTLIBRARIES =
endif

# The directory where headers will be installed
libcgm_parallel_la_includedir = $(includedir)

# The non-template sources
libcgm_parallel_la_SOURCES = \
    CGMProcConfig.cpp \
    CGMParallelComm.cpp \
    CABodies.cpp \
    TDParallel.cpp \
    CGMReadParallel.cpp

# The non-template headers
# If any of these do not need to be installed, move them
# to the _SOURCES list above.
nobase_libcgm_parallel_la_include_HEADERS = \
    cgm/CGMmpi.h \
    cgm/CGMmpi_config.h \
    cgm/CGMProcConfig.hpp \
    cgm/CGMParallelComm.hpp \
    cgm/CABodies.hpp \
    cgm/TDParallel.hpp \
    cgm/CGMReadParallel.hpp \
    cgm/CGMParallelConventions.h

EXTRA_DIST = CMakeLists.txt

